home *** CD-ROM | disk | FTP | other *** search
/ BBS in a Box 3 / BBS in a box - Trilogy III.iso / Files / Bus / C / Commander Demo / Commander Demo.rsrc / TEXT_5031_Average.txt < prev    next >
Encoding:
Text File  |  1993-09-07  |  746 b   |  22 lines

  1. ¬†Average (series) -> Number
  2.                                                                                     Pg 32-2
  3.  
  4. series       Field or subfield     Data for which to return the average
  5.  
  6.  
  7. Average returns the arthimetic mean (average) of series. If series is an indexed field, the index is used to find the average.
  8.  
  9. The following example sets a variable that is in the B0 Break area of an output layout. The line of code is the script for the variable. The script is not executed until the level 0 break:
  10.  
  11.        vAverage:= Average([Employees]Sales)
  12.  
  13.  
  14. The following example finds the average age of an employee‚Äôs children from subfile data:
  15.  
  16.         vAverage:= Average([Employees]Children'Age)
  17.  
  18.  
  19.  
  20. See also: ¬†ACCUMULATE, BREAK¬†LEVEL 
  21.  
  22.